import request from '@/utils/request'

// 查询专家抽取列表
export function listExpertselect(query) {
  return request({
    url: '/system/expertselect/list',
    method: 'get',
    params: query
  })
}

// 查询专家抽取详细
export function getExpertselect(id) {
  return request({
    url: '/system/expertselect/' + id,
    method: 'get'
  })
}

// 新增专家抽取
export function addExpertselect(data) {
  return request({
    url: '/system/expertselect',
    method: 'post',
    data: data
  })
}

// 修改专家抽取
export function updateExpertselect(data) {
  return request({
    url: '/system/expertselect',
    method: 'put',
    data: data
  })
}

// 删除专家抽取
export function delExpertselect(id) {
  return request({
    url: '/system/expertselect/' + id,
    method: 'delete'
  })
}

// 专家抽取
export function doExpertselectextract(id) {
  return request({
    url: '/system/expertselect/expertextract/' + id,
    method: 'get'
  })
}
